// 封装和token相关方法 存 取 删
const TOKEN_KEY = "token_key";
function setToken(token: string): void {
  localStorage.setItem(TOKEN_KEY, token);
}

function getToken(): string | null {
  return localStorage.getItem(TOKEN_KEY);
}

function removeToken(): void {
  return localStorage.removeItem(TOKEN_KEY);
}
export { setToken, getToken, removeToken };
